﻿using System;
using System.IO;
using System.Text;

namespace FlyWeight
{
    class BigChar
    {
        private char charName;
        private string fontData;

        public BigChar(char charName)
        {
            this.charName = charName;

            try
            {
                var buf = new StringBuilder();

                using (var reader = new StreamReader(@"../../big" + charName + ".txt"))
                {
                    buf.AppendLine(reader.ReadToEnd());
                }
                this.fontData = buf.ToString();
            }
            catch (Exception e)
            {
                this.fontData = charName + "?";
            }
        }

        public void Print()
        {
            Console.Write(fontData);
        }
    }
}
